<script type="text/javascript" src="/static/assets/js/moment.js"></script>
<script type="text/javascript" src="/static/assets/js/daterangepicker.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="/static/assets/css/daterangepicker-bs3.css"/>

<input hidden="hidden" id="navValue" value="股东列表">
<div class="page-content">
    <div class="page-header">
        <h1>
            牡丹荟管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                添加牡丹荟分红配置
            </small>
        </h1>
    </div><!-- /.page-header -->
    <div class="row">
        <div class="col-xs-12">
            <form action="{:url('insertConfig')}" method="get">
                <table id="simple-table" class="table  table-bordered table-hover">
                    <tbody>
                    <tr>
                        <td>期数</td>
                        <td><input type="text" readonly="readonly" value="{$id}"> <input type="hidden" value="1" name="insert"></td>
                    </tr>
                    <tr>
                        <td>开始时间-结束时间</td>
                        <td>
                            <div class="row">
                                <div class="col-xs-8 col-sm-11">
                                    <div class="input-group">
									<span class="input-group-addon">
										<i class="fa fa-calendar bigger-110"></i>
									</span>
                                        <input class="form-control" type="text" name="date-range-picker"
                                               id="id-date-range-picker-1">
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>持苗数条件</td>
                        <td><input type="text" value="0" name="num"></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="col-md-offset-3 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    Submit
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn" type="reset">
                                    <i class="ace-icon fa fa-undo bigger-110"></i>
                                    Reset
                                </button>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div><!-- /.span -->
    </div><!-- /.row -->
    <!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div>
<script>
    $('input[name=date-range-picker]').daterangepicker({
            'applyClass': 'btn-sm btn-success',
            'cancelClass': 'btn-sm btn-default',
            locale: {
                applyLabel: 'Apply',
                cancelLabel: 'Cancel',
            }
        })
        .prev().on(ace.click_event, function () {
        $(this).next().focus();
    });
</script>
